package com.wwy.www.demo1;

import com.wwy.www.demo1.Animal;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-08-24
 * Time: 18:24
 */
public class Dog extends Animal {
    String pin;
    String a;

    public void bark() {
        System.out.println(this.name + "正在狗叫");
    }

    public Dog(String pin) {
        this("a","d");
        this.pin = pin;
    }

    public Dog(String pin, String a) {
        this.pin = pin;
        this.a = a;
    }

    @Override
    public void eat() {
            System.out.println("qwe");
    }
}
